package com.zhang.zhangapp.bean.shop;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/4/1.
 */

public class Shop implements Parcelable {

    private String shopCode;
    private String perconsume;
    private String address;
    private String ranges;
    private String addlat;
    private String shopName;
    private String areacode;
    private String typecode;
    private String consumecon;
    private String listpic;
    private String phone;
    private String grade;
    private String addlon;

    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getPerconsume() {
        return perconsume;
    }

    public void setPerconsume(String perconsume) {
        this.perconsume = perconsume;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRanges() {
        return ranges;
    }

    public void setRanges(String ranges) {
        this.ranges = ranges;
    }

    public String getAddlat() {
        return addlat;
    }

    public void setAddlat(String addlat) {
        this.addlat = addlat;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getAreacode() {
        return areacode;
    }

    public void setAreacode(String areacode) {
        this.areacode = areacode;
    }

    public String getTypecode() {
        return typecode;
    }

    public void setTypecode(String typecode) {
        this.typecode = typecode;
    }

    public String getConsumecon() {
        return consumecon;
    }

    public String getConsumeconCount(){
        if(consumecon==null || consumecon.equals("")){
            return "0";
        }
        return consumecon;
    }

    public void setConsumecon(String consumecon) {
        this.consumecon = consumecon;
    }

    public String getListpic() {
        return listpic;
    }

    public void setListpic(String listpic) {
        this.listpic = listpic;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getAddlon() {
        return addlon;
    }

    public void setAddlon(String addlon) {
        this.addlon = addlon;
    }


    protected Shop(Parcel in) {
        shopCode = in.readString();
        perconsume = in.readString();
        address = in.readString();
        ranges = in.readString();
        addlat = in.readString();
        shopName = in.readString();
        areacode = in.readString();
        typecode = in.readString();
        consumecon = in.readString();
        listpic = in.readString();
        phone = in.readString();
        grade = in.readString();
        addlon = in.readString();
    }

    public static final Creator<Shop> CREATOR = new Creator<Shop>() {
        @Override
        public Shop createFromParcel(Parcel in) {
            return new Shop(in);
        }

        @Override
        public Shop[] newArray(int size) {
            return new Shop[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(shopCode);
        parcel.writeString(perconsume);
        parcel.writeString(address);
        parcel.writeString(ranges);
        parcel.writeString(addlat);
        parcel.writeString(shopName);
        parcel.writeString(areacode);
        parcel.writeString(typecode);
        parcel.writeString(consumecon);
        parcel.writeString(listpic);
        parcel.writeString(phone);
        parcel.writeString(grade);
        parcel.writeString(addlon);
    }
}
